package com.bootdo.provider.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.provider.dao.ProviderInfoDao;
import com.bootdo.provider.domain.ProviderInfoDO;
import com.bootdo.provider.service.ProviderInfoService;



@Service
public class ProviderInfoServiceImpl implements ProviderInfoService {
	@Autowired
	private ProviderInfoDao providerInfoDao;
	
	@Override
	public ProviderInfoDO get(Long providerId){
		return providerInfoDao.get(providerId);
	}
	
	@Override
	public List<ProviderInfoDO> list(Map<String, Object> map){
		return providerInfoDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return providerInfoDao.count(map);
	}
	
	@Override
	public int save(ProviderInfoDO providerInfo){
		return providerInfoDao.save(providerInfo);
	}
	
	@Override
	public int update(ProviderInfoDO providerInfo){
		return providerInfoDao.update(providerInfo);
	}
	
	@Override
	public int remove(Long providerId){
		return providerInfoDao.remove(providerId);
	}
	
	@Override
	public int batchRemove(Long[] providerIds){
		return providerInfoDao.batchRemove(providerIds);
	}
	
}
